package com.wzy.sxcg.service.impl;

import java.util.List;
import com.wzy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wzy.sxcg.mapper.SxcgZjbgMapper;
import com.wzy.sxcg.domain.SxcgZjbg;
import com.wzy.sxcg.service.ISxcgZjbgService;

/**
 * 总结报告Service业务层处理
 * 
 * @author wzy
 * @date 2025-10-21
 */
@Service
public class SxcgZjbgServiceImpl implements ISxcgZjbgService 
{
    @Autowired
    private SxcgZjbgMapper sxcgZjbgMapper;

    /**
     * 查询总结报告
     * 
     * @param zjbgId 总结报告主键
     * @return 总结报告
     */
    @Override
    public SxcgZjbg selectSxcgZjbgByZjbgId(Long zjbgId)
    {
        return sxcgZjbgMapper.selectSxcgZjbgByZjbgId(zjbgId);
    }

    /**
     * 查询总结报告列表
     * 
     * @param sxcgZjbg 总结报告
     * @return 总结报告
     */
    @Override
    public List<SxcgZjbg> selectSxcgZjbgList(SxcgZjbg sxcgZjbg)
    {
        return sxcgZjbgMapper.selectSxcgZjbgList(sxcgZjbg);
    }

    /**
     * 新增总结报告
     * 
     * @param sxcgZjbg 总结报告
     * @return 结果
     */
    @Override
    public int insertSxcgZjbg(SxcgZjbg sxcgZjbg)
    {
        sxcgZjbg.setCreateTime(DateUtils.getNowDate());
        return sxcgZjbgMapper.insertSxcgZjbg(sxcgZjbg);
    }

    /**
     * 修改总结报告
     * 
     * @param sxcgZjbg 总结报告
     * @return 结果
     */
    @Override
    public int updateSxcgZjbg(SxcgZjbg sxcgZjbg)
    {
        sxcgZjbg.setUpdateTime(DateUtils.getNowDate());
        return sxcgZjbgMapper.updateSxcgZjbg(sxcgZjbg);
    }

    /**
     * 批量删除总结报告
     * 
     * @param zjbgIds 需要删除的总结报告主键
     * @return 结果
     */
    @Override
    public int deleteSxcgZjbgByZjbgIds(Long[] zjbgIds)
    {
        return sxcgZjbgMapper.deleteSxcgZjbgByZjbgIds(zjbgIds);
    }

    /**
     * 删除总结报告信息
     * 
     * @param zjbgId 总结报告主键
     * @return 结果
     */
    @Override
    public int deleteSxcgZjbgByZjbgId(Long zjbgId)
    {
        return sxcgZjbgMapper.deleteSxcgZjbgByZjbgId(zjbgId);
    }
}
